<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>home</title>
</head>
<body>
    <h1>我是静态页面</h1>
    <script>
        var webSocket = new WebSocket("ws://localhost:8899/ws");
        webSocket.onopen = function () {
            console.log("连接上了")
        }
        webSocket.onerror = function () {
            console.log("连接失败")
        }
        webSocket.onmessage = function (evt) {
            console.log(evt)
        }
    </script>
</body>
</html>